What's the best way to create 2D arrays in Python? What I want is want is to store values like this: X , Y , Z ... Lists can be nested arbitrarily, thus allowing the creation of a 2D array. Not every sublist needs to be the same size, so that solves y